%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

%% OTP版本号检测
{minimum_otp_vsn, "19"}.

%%
{erl_opts, [
    no_debug_info,
    warn_export_all,
    warn_unused_import,
    warn_unused_vars, 
    nowarn_shadow_vars,
    % warnings_as_errors,
    {src_dirs, ["src"]}
]}.

{deps, [
     {jiffy        ,{git, "https://git.oschina.net/w_g/jiffy.git", {branch, "master"}}}
    ,{proper       ,{git, "https://git.oschina.net/w_g/proper.git", {branch, "master"}}}
    ,{stringprep   ,{git, "https://git.oschina.net/w_g/stringprep.git", {branch, "master"}}}
    ,{efuns        ,{git, "https://gitlab.uip6.com/dwg/efuns.git", {tag, "0.2.5"}}}
]}.

%% rebar3
{xref_warnings, true}.
{xref_checks,
    [ undefined_function_calls
    , locals_not_used
    , deprecated_function_calls
    , deprecated_functions
    ]
}.

{relx, [{release, {streetlight , "0.1.0"},
         [streetlight, 
          crypto, efuns,
          jiffy, proper,
          stringprep, sasl]},
        {dev_mode, false},
        {include_src, false},
        {include_erts, true},
        {system_libs, true},
        {extended_start_script, true}
]}.

{clean_files, ["erl_crash.dump", "rebar3.crashdump", "rebar.lock"]}.
